//
//  PSThumbListController.m
//  photoSep
//
//  Created by David Michaeli on 12/10/12.
//  Copyright (c) 2012 David Michaeli. All rights reserved.
//

#import "PSThumbListController.h"

@interface PSThumbListController ()

@end

@implementation PSThumbListController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Initialization code here.
    }
    
    return self;
}

-(void) awakeFromNib
{
    [_fileListController addObserver:self forKeyPath:@"currentSelectedNode" options:NSKeyValueObservingOptionNew context:nil];
}

@synthesize view = _view;

- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object
                        change:(NSDictionary *)change
                       context:(void *)context
{
    if ([keyPath isEqualToString:@"currentSelectedNode"] )
    {
        // process here
    }
}

@end
